<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>CategoryAdd.jsp</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0"> 
	<s:head theme="simple"/>
	<link rel="stylesheet" href="../theme1/css/reset.css" type="text/css"/>
	<link rel="stylesheet" href="../theme1/css/screen.css" type="text/css"/>
	<link rel="stylesheet" href="../theme1/css/screen-common.css" type="text/css"/>	
	<script type="text/javascript" src="../js/jquery.js"></script>
	<script type="text/javascript" src="../theme1/js1/script.js"></script>	   
  </head>
  
  <body>
    <div class="page wrap" >
     <!-- menu bar -->
	  <div class="menubar clear" >
		  <ul class="menus clear">
			  <li><a href="Category_edit.action">添加分类</a></li>
			  <li><a href="Category_list.action">返回列表</a></li>
		  </ul>
	  </div>
	  <div class="content-box">
	   <div class="box-header clear">					
				<h2>文章分类编辑</h2>
	    </div>
	    <div class="box-body clear">
	    <s:actionerror/>
    	<s:actionmessage/>
	    <form class="form" action="Category_saveedit.action" method="post">
	    <s:hidden name="category.id"></s:hidden>
	     <div class="form-field clear">
		  	<label class="form-label fl-space2" for="category_parentId">分类： </label>
		  	<s:select list="categories" listKey="id" listValue="categoryName" name="category.parentId" headerKey="-1" headerValue="----顶级分类----"></s:select>
		  	<span class="required">*</span>
	  	</div>
	     <div class="form-field clear">
		  	<label class="form-label fl-space2" for="category_categoryName">名称： </label>
		  	<s:textfield name="category.categoryName"></s:textfield>
		  	<span class="required">*</span>
	  	</div> 	    	
	     <div class="form-field clear" style="display:inline-block">
			<input type="submit" value="提交" class="submit fr">
	  	</div> 
	    </form>
	    </div>
      </div>
    </div>
  </body>
</html>
